package com.project.dao;

import com.project.bean.StudentBean;


import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface studentMapper {
   int deleteByPrimaryKey(Integer sId);

   int insert(StudentBean record);

   int insertSelective(StudentBean record);

   StudentBean selectByPrimaryKey(Integer sId);

   int updateByPrimaryKeySelective(StudentBean record);

   int updateByPrimaryKey(StudentBean record);

   int insertBatchSelective(List<StudentBean> records);

   int updateBatchByPrimaryKeySelective(List<StudentBean> records);
   
   List<StudentBean> findStuByPage(Map<String,Integer> map);
   
   int findAllNumber(); 
   //注册user的时候在学员表中添加一个相应的用户
   int addStudentSUId(int suid);
   
   //完善学员信息
   int updateStudentMessage(@Param("sRealname")String sRealname,@Param("sAge") int sAge,@Param("sGender")int sGender,@Param("sId")int id);
   
   //查询所有学员
   public List<StudentBean> findAllStu();
   //查询学员byUserId
   StudentBean selectByUserId(int uId);
}